<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class UserFaceLog
 * Description:用户人脸识别认证模型
 * Author: Sam
 * DateTime: 2019/1/2 10:24
 *
 * @package App\Models
 * @property int $id
 * @property int $user_id 用户id
 * @property int $face_id face认证id
 * @property int $status 认证结果1成功2失败
 * @property string $verify_time 认证时间
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereFaceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereVerifyTime($value)
 * @mixin \Eloquent
 * @property string $confidence 比对结果置信度
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserFaceLog whereConfidence($value)
 */
class UserFaceLog extends Model
{
    /**
     * 认证成功状态
     */
    CONST STATUS_SUCCESS = 1;

    /**
     * 认证失败状态
     */
    CONST STATUS_FAIL = 2;

    protected $fillable = [
        'user_id',
        'face_id',
        'status',
        'confidence',
    ];
}
